// 响应类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface CategoryObj {
  id: number | string
  name: string
  category1Id?: number
  category2Id?: number
}

export interface CategoryResponse extends ResponseData {
  data: CategoryObj[]
}

export interface AttrValueObj {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}
export type AttrValueList = AttrValueObj[]
export interface AttrObj {
  id?: number
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: AttrValueList
}

// 属性与属性值的ts类型
export interface AttrResponse extends ResponseData {
  data: AttrObj[]
}
